package com.ruoyi.system.service;

import com.github.pagehelper.PageInfo;
import com.ruoyi.system.domain.HospitalCampus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HospitalCampusService {

    List<HospitalCampus> listAll();
    HospitalCampus selectById(Long id);
    int save(HospitalCampus campus);
    int update(HospitalCampus campus);
    int delete(Long id);

    // 根据ID获取院区及联系电话
    HospitalCampus getByIdWithContacts(Long id);

    // 获取院区列表及联系电话
    List<HospitalCampus> selectAllWithContactsAndNavigations(String campusName);

//    List<HospitalCampus> selectAllWithNavigation();

    /**
     * 根据院区名称获取院区id
     * @return
     */
    public int selectIdByName(String campusName);
}
